package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 推荐功能之推荐物品
 * </p>
 *
 * @author TP
 * @since 2022-03-19 15:23:55
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("recommend_object")
@ApiModel(value = "RecommendObject对象", description = "推荐功能之推荐物品")
public class RecommendObject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("Recommend_service表的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("物品名字")
    @TableField("`name`")
    private String name;

    @ApiModelProperty("适合宠物类型")
    @TableField("fit_pet")
    private String fitPet;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("补充信息")
    @TableField("addition")
    private String addition;

    @ApiModelProperty("价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Boolean delete;


}
